package com.rainbowwolfer.myspacedemo1

import com.rainbowwolfer.myspacedemo1.util.EasyFunctions.toDuo
import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

//    @Test
//    fun `hasUpperCase$app_debug`() {
//        assertEquals("".hasUpperCase(), false)
//        assertEquals("a".hasUpperCase(), false)
//        assertEquals("A".hasUpperCase(), true)
//        assertEquals("123d".hasUpperCase(), false)
//        assertEquals("EWQ2".hasUpperCase(), true)
//    }
	@Test
	fun toDuo() {
		Assert.assertEquals(5.toDuo(), "05")
		Assert.assertEquals(1.toDuo(), "01")
		Assert.assertEquals((-5).toDuo(), "-5")
		Assert.assertEquals(32.toDuo(), "32")
	}


}